﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ACP.Data;
using ACP.DTO;

namespace ACP.Business
{
    public class UsersLogic
    {
        public static Guid GetuserGuidByUserName(string userName)
        {
            return MembershipUserRepository.GetuserGuidByUserName(userName); 
        }

        public static List<user> GetAllUsers()
        {
            return UserRepository.GetAllUsers();
        }
        public static user GetuserByGuid(Guid aspnetUserGuid)
        {
            return UserRepository.GetuserByGuid(aspnetUserGuid);
        }

        public static void insertUser(user userObject)
        {
            UserRepository.InsertUser(userObject);
        }
    }
}
